<?php

namespace app\crm\logic;


class ClientLogic
{


    /**
     * 获取销售新增数据
     * @param $userId
     * @param $param
     * @author Mr.Li
     * @create 2021-08-05 9:54
     */
    public function getNewSalesData($obj,$userId,$param)
    {
        $obj = new $obj();
        return $obj->getNewSalesData($userId,$param);
    }

    /**
     * 获取汇总数据
     * @param $userId
     * @param $param
     * @author Mr.Li
     * @create 2021-08-05 9:54
     */
    public function getSummaryData($obj,$userId,$param)
    {
        $obj = new $obj();
        return $obj->getSummaryData($userId,$param);
    }


    /**
     * 获取消息数量
     * @param $obj
     * @param $userId
     * @param $param
     * @return mixed
     * @author Mr.Li
     * @create 2021-08-09 14:51
     */
    public function getMessageNum($obj,$userId,$param)
    {
        $obj = new $obj();
        return $obj->getMessageNum($userId,$param);
    }


    /**
     * 获取消息列表
     * @param $obj
     * @param $userId
     * @param $param
     * @return mixed
     * @author Mr.Li
     * @create 2021-08-09 14:52
     */
    public function getMessageList($obj,$userId,$param)
    {
        $obj = new $obj();
        return $obj->getMessageList($userId,$param);
    }




}
